package com.zhou.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

@Getter
public enum IsRightEnum implements IEnum<Integer> {
    WRONG(0,"错误"),
    RIGHT(1,"正确");

    @EnumValue
    private final int value;
    private final String displayName;

    IsRightEnum(Integer value, String displayName) {
        this.value = value;
        this.displayName = displayName;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.displayName;
    }
}
